home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15553 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How do the functions in <time.h> work?
  5. Date: Fri, 19 Apr 96 21:53:44 GMT
  6. Organization: none
  7. Message-ID: <829950824snz@genesis.demon.co.uk>
  8. References: <317653DA.5066@ix.netcom.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <317653DA.5066@ix.netcom.com>
  15.            jharper@ix.netcom.com "Jane Harper" writes:
  16.  
  17. >This is sort of a homework question, so flame away if you must ...
  18. >
  19. >...but I'm attempting to write a bit of code to access the system time 
  20. >and when I call ctime() it returns January, 2014 (!!!!)  How does ctime 
  21. >work (or any of the fx in <time.h> for that matter, since they're all 
  22. >connected)?  What are some possible reasons for this bogus return?
  23.  
  24. We can't tell what you did unless you post some code. ctime() takes an
  25. argument which is a pointer to the time_t value you want to convert.
  26. Presumably you didn't pass it such a pointer.
  27.  
  28. -- 
  29. -----------------------------------------
  30. Lawrence Kirby | fred@genesis.demon.co.uk
  31. Wilts, England | 70734.126@compuserve.com
  32. -----------------------------------------
  33.